package com.efast.dmom.mgmt.service.master.impl;
import java.util.List;

import com.efast.dmom.mgmt.bean.mes.WorkOrderInfoDto;
import com.efast.dmom.mgmt.dao.master.TmBasStationDao;
import com.efast.dmom.mgmt.entity.master.TmBasStation;
import com.efast.dmom.mgmt.service.master.TmBasStationService;
import com.efast.dmom.mgmt.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class TmBasStationServiceImpl implements TmBasStationService{
    @Autowired
    private TmBasStationDao tmBasStationDao;
    @Override
    public long getTmBasStationRowCount(Assist assist){
        return tmBasStationDao.getTmBasStationRowCount(assist);
    }
    @Override
    public List<TmBasStation> selectTmBasStation(Assist assist){
        return tmBasStationDao.selectTmBasStation(assist);
    }
    @Override
    public TmBasStation selectTmBasStationByObj(TmBasStation obj){
        return tmBasStationDao.selectTmBasStationByObj(obj);
    }
    @Override
    public TmBasStation selectTmBasStationById(Integer id){
        return tmBasStationDao.selectTmBasStationById(id);
    }
    @Override
    public int insertTmBasStation(TmBasStation value){
        return tmBasStationDao.insertTmBasStation(value);
    }
    @Override
    public int insertNonEmptyTmBasStation(TmBasStation value){
        return tmBasStationDao.insertNonEmptyTmBasStation(value);
    }
    @Override
    public int insertTmBasStationByBatch(List<TmBasStation> value){
        return tmBasStationDao.insertTmBasStationByBatch(value);
    }
    @Override
    public int deleteTmBasStationById(Integer id){
        return tmBasStationDao.deleteTmBasStationById(id);
    }
    @Override
    public int deleteTmBasStation(Assist assist){
        return tmBasStationDao.deleteTmBasStation(assist);
    }
    @Override
    public int updateTmBasStationById(TmBasStation enti){
        return tmBasStationDao.updateTmBasStationById(enti);
    }
    @Override
    public int updateTmBasStation(TmBasStation value, Assist assist){
        return tmBasStationDao.updateTmBasStation(value,assist);
    }
    @Override
    public int updateNonEmptyTmBasStationById(TmBasStation enti){
        return tmBasStationDao.updateNonEmptyTmBasStationById(enti);
    }
    @Override
    public int updateNonEmptyTmBasStation(TmBasStation value, Assist assist){
        return tmBasStationDao.updateNonEmptyTmBasStation(value,assist);
    }

    public TmBasStationDao getTmBasStationDao() {
        return this.tmBasStationDao;
    }

    public void setTmBasStationDao(TmBasStationDao tmBasStationDao) {
        this.tmBasStationDao = tmBasStationDao;
    }
	@Override
	public List<WorkOrderInfoDto> getAllStation() {
		List<WorkOrderInfoDto> tmBasStation = tmBasStationDao.getAllStation();
		return tmBasStation;
	}

}